﻿using System;

namespace Teigha.Core
{
	public class OdGiWorldDraw_Internal : OdGiWorldDraw
	{
		public OdGiWorldDraw_Internal(IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
		{
		}

		public override OdGiWorldGeometry geometry()
		{
			OdGiWorldGeometry result = new OdGiWorldGeometry_Internal(GlobalsPINVOKE.OdGiWorldDraw_geometry(OdGiWorldDraw.getCPtr(this)), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public override OdGiSubEntityTraits subEntityTraits()
		{
			IntPtr cPtr = GlobalsPINVOKE.OdGiCommonDraw_subEntityTraits(OdGiCommonDraw.getCPtr(this));
			OdGiSubEntityTraits result = new OdGiSubEntityTraits_Internal(cPtr, false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}
	}
}
